package service;

import java.util.Comparator;

import model.SaleData;

public class SaleDataPriceComp implements Comparator<SaleData>{

	
	public int compare(SaleData o1, SaleData o2) {
		if(o1.getPrice() > o2.getPrice()){
			return -1;
		}else if(o1.getPrice() == o2.getPrice()){
			return 0;
		}else{
			return 1;
		}
	}
	
}